<div id="leftbar">
				<div id="nav-top">
					<div id="logo"></div>
				</div>
				<div id="main-nav">
					<ul>
						<?php
						$base = site_url(). 'admin/';
						foreach($resources as $resource):
		   					$class = 'top-link '.( $controller == strtolower($resource["controller"]) ? 'active' : 'inactive' );
		   					$id = 'nav_' .$resource["controller"];
		   				?>
		      				<li><a href="<?php echo $base . $resource["controller"]; ?>" id="<?php echo $id; ?>" class="<?php echo $class; ?>"><?php echo $resource["title"] ?></a></li>
		   				<?php endforeach; ?>

					</ul>
				</div>

			</div>